package com.monitoring.management.core.service;

import com.monitoring.management.common.page.Page;
import com.monitoring.management.core.command.query.QueryUserCommand;
import com.monitoring.management.core.dto.UserDTO;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * Created by liujunnan on 2017/6/1.
 */
public interface IUserService {

    UserDTO login(UserDTO userDTO);

    int register(UserDTO userDTO);

    UserDTO findByName(String userName);

    Page<UserDTO> pageUser(QueryUserCommand queryUserCommand);

    HttpServletResponse getExcelBySupply(String supplierId, HttpServletResponse res) throws IOException;
    HttpServletResponse getExcelBySupply1(HSSFWorkbook wb, String supplierId, HttpServletResponse res) throws IOException;
     List<String> usersListSave(String filePath, String userId);
    List<String> ListSave(String filePath);
}
